package com.ruoyi.common.enums;

public enum ErrorCode {
    SUCCESS(0, "成功"),
    VERIFY_FAILED(4001, "验签失败"),
    API_PERMISSION_REVOKED(4002, "API调用权限被封禁"),
    API_CLOSED(4003, "此接口暂时关闭"),
    REQUEST_TOO_FREQUENT(4004, "请求过频繁"),
    INVALID_PARAMETERS(4010, "参数错误"),
    ID_NOT_EXIST(4011, "身份ID不存在"),
    CONTACT_ADMIN(5100, "请联系管理员");

    private final int code;
    private final String message;

    ErrorCode(int code, String message) {
        this.code = code;
        this.message = message;
    }

    public int getCode() {
        return code;
    }

    public String getMessage() {
        return message;
    }
}
